﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Admin_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (Session["UserID"] == null || Session["UserID"] == "")
        //{
        //    Response.Redirect("Login.aspx?ReturnUrl=Default.aspx");

        //}
        try
        {
            string logout = Request.Cookies["logout"].Value;
            if (string.IsNullOrEmpty(logout))
            {
                Response.Redirect("Login.aspx?ReturnUrl=Default.aspx");
            }
        }
        catch (Exception)
        {
            Response.Redirect("Login.aspx?ReturnUrl=Default.aspx");
            
        }
        
    }
}